package ch.trackedbean.data.evaluator;

import ch.msoftch.internal.*;
import ch.trackedbean.copier.*;
import ch.trackedbean.data.*;

/**
 * Evaluator from TO to Dom classes.
 * 
 * @author M. Hautle
 */
public class ToEvaluator implements ITypeEvaluator {
    /**
     * {@inheritDoc}
     */
    @Override
    public Class<?> getCorrespondingType(Object src) throws TechnicalException {
        final Class<? extends Object> type = src.getClass();
        if (TOD.class.isAssignableFrom(type))
            return DomD.class;
        if (TOBC.class.isAssignableFrom(type))
            return DomB.class;
        return DomA.class;
    }
}
